home *** CD-ROM | disk | FTP | other *** search
/ MacPeople 2003 February 1 / MACPEOPLE-2003-02-01.ISO.7z / MACPEOPLE-2003-02-01.ISO / ぶらりオンラインウェアの旅 / おしゃべり漂流記 / xGates / xGates 1.2 Source Code.sit / xGates 1.2 Source Code / prototypes.h < prev    next >
Text File  |  2002-12-08  |  5KB  |  220 lines

  1. /*
  2.     xGates -- Stunningly entertaining action game for MacOS Classic / MacOS X
  3.     Copyright (C) 2002 Sveinbjorn Thordarson <paladeen@soth.zoneit.com>
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19.     prototypes.h
  20.  
  21. */
  22.  
  23. #include "DrawSprocket.h"
  24.  
  25.  
  26.  
  27. ////////////////////main.c////////////////////
  28.  
  29.     //main stuff
  30.     int main(void);//why not indeed?
  31.     void QuitApp (void);
  32.     void SetMenuStatus (void);
  33.  
  34.     //events
  35.     void HandleEvent (EventRecord *myEvent);
  36.     void HandleHLEvent (EventRecord *myEvent);
  37.     void HandleKey (EventRecord *theEvent);
  38.     void HandleMenus(long menuChoice);
  39.     void HandleMouse (EventRecord *myEvent);
  40.     void HandleClick (Point where);
  41.     void HandleUpdate (void);
  42.     void HandleOSEvent (EventRecord *myEvent);
  43.  
  44.     //game screens
  45.     void DoSplashScreen (void);
  46.     void DoDisclaimer (void);
  47.     void DoMoreAbout (void);
  48.     void DoCredits (void);
  49.     void DoControls (void);
  50.     void DoAbout (void);
  51.  
  52.     //high score
  53.     void ClearHighscoreList (void);
  54.  
  55.     //apple event stuff
  56.     OSErr HandleAEQuitApp(const AppleEvent *theAppleEvent, AppleEvent *reply, long refCon);
  57.     void AppleEventInit(void);
  58.     OSErr MyGotRequiredParams(const AppleEvent *theAppleEvent);
  59.  
  60. ////////////////////sound.c////////////////////
  61.  
  62.     void ServiceMusic(void);
  63.     void SilenceChannel(SndChannelPtr theChannel);
  64.     void SilenceAllChannels (void);
  65.     void EndPause (void);
  66.  
  67.  
  68. ////////////////////graphics.c////////////////////
  69.  
  70.     //game frame
  71.     void DrawGameBoard (void);
  72.     void DrawCornersToWorkMap (void);
  73.     void DrawPauseBarToWorkMap (void);
  74.     void DrawMacsToWorkMap (void);
  75.     void DrawBillsToWorkMap (void);
  76.     void DrawSteveToWorkMap (void);
  77.     void DrawPoofsToWorkMap (void);
  78.     void DrawDojsToWorkMap (void);
  79.     void DrawWeaponToWorkMap (void);
  80.     void DrawStatusBarToWorkMap (void);
  81.     void DrawFrameRateToWorkMap (long framerate);
  82.     void DrawBottomBarToWorkMap(void);
  83.     
  84.     //screens
  85.     void DrawSothScreen (void);
  86.     void DrawHighScorePrompt (void);
  87.     void DrawGameWonScreen (void);
  88.     void DrawSplashScreen (void);
  89.     void DrawAboutScreen (void);
  90.     void DrawMoreAboutScreen (void);
  91.     void DrawControlsScreen (void);
  92.     void DrawCreditsScreen (void);
  93.     void DrawDisclaimerScreen (void);
  94.     
  95.     //workmap ops
  96.     void ZoomBlitWorkMapToScreen (void);
  97.     void BlitWorkMapToScreen (void);
  98.     void EraseWorkMapRect (Rect *theRect);
  99.     void DrawBlackWorkMap (void);
  100.  
  101.     //graphics
  102.     GWorldPtr LoadPicToGWorld(short picId);
  103.  
  104. ////////////////////util.c////////////////////
  105.  
  106.     unsigned char *pStrcpy(register unsigned char *dst, register unsigned char *src);
  107.     short absolute (short value);
  108.     short RandomBetween(short value1, short value2);
  109.     void Sleep (short seconds);
  110.     void ShadeRect (Rect *rect);
  111.     void FatalErrorAlert(Str255 errorString, Str255 expStr);
  112.     Rect* CenterRectInRect(Rect *smallRect, Rect *bigRect);
  113.     void DoAlert (Str255 errorString, Str255 expStr);
  114.  
  115.  
  116. ////////////////////prefs.c////////////////////
  117.  
  118.     void LoadPrefs (void);
  119.     void ReadPrefs (FSSpec fileSpec);
  120.     void CreatePrefs (FSSpec fileSpec);
  121.     short WritePrefs (void);
  122.  
  123.  
  124. ////////////////////init.c////////////////////
  125.  
  126.     void InitToolbox (void);
  127.     void InitSound (void);
  128.     void InitGraphics (void);
  129.     void InitMenus (void);
  130.     void DisplayReset(void);
  131.     
  132.  
  133. ////////////////////game.c////////////////////
  134.  
  135.     void DoGameFrame (void);
  136.     void DoGetPlayerName (void);
  137.     
  138.     //start/end
  139.     void NewGame (void);
  140.     void GameOver (void);
  141.     void EndGame (void);
  142.     void GameWon (void);
  143.  
  144.     //level stuff
  145.     void StartLevel (short levelNum);
  146.     void EndLevel (void);
  147.     void UpOneLevel (void);
  148.  
  149.     //pause
  150.     void PauseGame (void);
  151.     
  152.     //macs
  153.     short CheckIfAllMacsHaveBecomeCorrupted (void);
  154.     void ResetAllMacsInLevel (short levelNum);
  155.     void ResetMacsInAllLevels (void);
  156.     Rect *GetMacRect (short macNum);
  157.     
  158.     //doj
  159.     void DepartmentOfJusticeEffect (void);
  160.     void AddDoj (void);
  161.     void RemoveDoj (short dojNum);
  162.     
  163.     //bill
  164.     void DoBillMoves (void);
  165.     void AddBill (void);
  166.     void RemoveBill (short billNum);
  167.     short FindClosestBillTarget (short billNum);
  168.     Rect* GetBillRect (short billNum);
  169.     
  170.     //steve
  171.     void DoSteveMove (void);
  172.     void AddSteve (void);
  173.     void RemoveSteve (void);
  174.     short FindClosestSteveTarget (void);
  175.     Rect* GetSteveRect (void);
  176.     
  177.     //poof
  178.     void AddPoof (short x, short y, short effectType);
  179.     void RemovePoof (short poofNum);
  180.  
  181.     //eventz
  182.     Boolean CheckKeyMapForKey(KeyMap theKeyMap, short theKey);
  183.     void CheckKeysInGame (void);
  184.     void CheckForMouse (void);
  185.  
  186.     //other
  187.     void DoExtraMoves (void);
  188.     void RandomGoodie (short chance);
  189.     
  190.     short CheckPlaceInHighscoreList (void);
  191.     void AddScoreToHighScoreChart (void);
  192.  
  193.     
  194.     void DisplayInit (void);
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.